<div class="row RowSpace" style="margin-bottom:20px;">
  <div class="LableDiv" style="width:50px;"><Btn class="BtnSave" value="保存" ng-click="btnSave()"></Btn></div>
  <div class="LableDiv" style="width:60px;"><Btn value="放弃" ng-click="btnCancel()"></Btn></div>
  <div class="LableDiv" style="width:50px;"><Btn class="BtnAdd" value="新增" ng-click="btnAdd()"></Btn></div>
  <div class="LableDiv" style="width:60px;"><Btn class="BtnDelete" value="删除" ng-click="btnDelete()"></Btn></div>
  <div class="LableDiv" style="width:50px;">
    <BtnFind DisplayName="查找" WindowTitle="检验标准" module="Module.QCStandard">
      <FColumn type="0" width="150px" displayname="料号" valuefield="ItemMaster.Code"></FColumn>
      <FColumn type="0" width="150px" displayname="品名" valuefield="ItemMaster.Name"></FColumn>
      <FColumn type="dropdownlist" width="150px" enum="ItemCategoryEnum" displayname="物料分类" valuefield="ItemCategory"></FColumn>
      <FColumn type="TextBox" width="150px" displayname="作业" valuefield="Work.Name"></FColumn>
      <FColumn type="TextBox" width="150px" displayname="质检指标" valuefield="QCNorm.Name"></FColumn>
    </BtnFind>
  </div>
  <div class="LableDiv" style="width:60px;"><Btn value="列表" ng-click="btnList()"></Btn></div>
  <PageButton module="Module.QCStandard"></PageButton>
</div>

<div class="row RowSpace">
  <div class="LableDiv"><label>物料</label></div>
  <div class="InputDiv">
    <Refer EntityName="ItemMaster" WindowTitle="料品" value="Module.QCStandard.FocusedRecord.ItemMaster" Enabled="{{Module.QCStandard.FocusedRecord.ItemCategory == null}}">
      <RColumn type="0" width="150px" DisplayName="编码" valuefield="Code"></RColumn>
      <RColumn type="textbox" width="150px" DisplayName="名称" valuefield="Name"></RColumn>
      <RColumn type="dropdownlist" DisplayName="分类" width="150px" ValueField='ItemCategory' Enum="ItemCategoryEnum"></RColumn>
      <RColumn DisplayName="规格" width="150px" ValueField="Specification"></RColumn>
    </Refer>
  </div>
  <div class="LableDiv"><label>物料分类</label></div>
  <div class="InputDiv">
    <DropDownList value="Module.QCStandard.FocusedRecord.ItemCategory" enum="ItemCategoryEnum" Enabled="{{Module.QCStandard.FocusedRecord.ItemMaster == null}}"></DropDownList>
  </div>
  <div class="LableDiv"><label IsEmpty="false">标准作业</label></div>
  <div class="InputDiv">
    <Refer EntityName="Work" WindowTitle="作业" value="Module.QCStandard.FocusedRecord.Work">
      <RColumn type="0" width="150px" DisplayName="编码" valuefield="Code"></RColumn>
      <RColumn type="textbox" width="150px" DisplayName="名称" valuefield="Name"></RColumn>
    </Refer>
  </div>
  <div class="LableDiv"><label IsEmpty="false">质检指标</label></div>
  <div class="InputDiv">
    <Refer EntityName="QCNorm" change="qcNormChange(records)" WindowTitle="质检指标" value="Module.QCStandard.FocusedRecord.QCNorm" Populate="{path: 'ExtendEnum'}">
      <RColumn type="0" width="150px" DisplayName="编码" valuefield="Code"></RColumn>
      <RColumn type="textbox" width="200px" DisplayName="名称" valuefield="Name"></RColumn>
      <RColumn type="dropdownlist" DisplayName="类型" width="80px" ValueField='Type' Enum="TypeEnum"></RColumn>
      <RColumn DisplayName="单位" width="150px" ValueField="Unit"></RColumn>
    </Refer>
  </div>
</div>

<div class="row RowSpace">
  <div class="LableDiv"><label>指标类型</label></div>
  <div class="InputDiv">
    <DropDownList value="Module.QCStandard.FocusedRecord.QCNorm.Type" enum="TypeEnum" Enabled="false"></DropDownList>
  </div>
  <div class="LableDiv"><label>标准值</label></div>
  <div class="InputDiv">
    <NumberBox value="Module.QCStandard.FocusedRecord.StandardValueNumber" Visible="{{Module.QCStandard.FocusedRecord.QCNorm.Type == 0}}"></NumberBox>
    <TextBox value="Module.QCStandard.FocusedRecord.StandardValueText" Visible="{{Module.QCStandard.FocusedRecord.QCNorm.Type == 1 || Module.QCStandard.FocusedRecord.QCNorm.Type == null || Module.QCStandard.FocusedRecord.QCNorm.Type == undefined}}" Enabled="{{Module.QCStandard.FocusedRecord.QCNorm.Type == 1}}"></TextBox>
    <CheckBox value="Module.QCStandard.FocusedRecord.StandardValueCheck" Visible="{{Module.QCStandard.FocusedRecord.QCNorm.Type == 2}}"></CheckBox>
    <DropDownList value="Module.QCStandard.FocusedRecord.StandardValueSelect" Enum="QCNormExtendEnum" Visible="{{Module.QCStandard.FocusedRecord.QCNorm.Type == 3}}"></DropDownList>
  </div>
  <div class="LableDiv"><label>标准值下限</label></div>
  <div class="InputDiv"><NumberBox value="Module.QCStandard.FocusedRecord.ValueLowerLimit" Enabled="{{Module.QCStandard.FocusedRecord.QCNorm.Type == 0}}"></NumberBox></div>
  <div class="LableDiv"><label>标准值上限</label></div>
  <div class="InputDiv"><NumberBox value="Module.QCStandard.FocusedRecord.ValueUpperLimit" Enabled="{{Module.QCStandard.FocusedRecord.QCNorm.Type == 0}}"></NumberBox></div>
</div>
<div class="row RowSpace">
  <div class="LableDiv"><label>拉网</label></div>
  <div class="InputDiv">
    <DropDownList value="Module.QCStandard.FocusedRecord.DescSeg1" enum="SeineEnum" IsEmpty="false"></DropDownList>
  </div>
</div>
